<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>Review</title>
		<link type="text/css" href="css/coms.css" rel="stylesheet" />
		<link type="text/css" href="css/jquery-ui-1.8.13.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="scripts/jquery-1.5.1.min.js"></script>
		<script type="text/javascript" src="scripts/jquery-ui-1.8.13.custom.min.js"></script>
		<script type="text/javascript">
		$(function(){
			// Tabs
			$('#tabs').tabs();
			});
			
			jQuery(document).ready( function() {
				
				$('#submitButton').click(function(e){
					
					alert("The Reviewer is successfully assigned");
				
				});
					
			});
		</script>
		</head>
<body>
	    <s:form action="assignReviewers" method="POST" >
	     <table border="0">
				<tr><td>
					<s:a href="displayConference.action">Back to Conference List</s:a>
					</td>
					</tr>
				</table>
 			<s:if test="fileItem.listOfReviewers.size() > 0">
					 <table border="0" cellpadding="5px">
					
					<s:iterator value="reviewerList" status="status" var="it">
					<tr>
					<td>
					
					<s:select name="fileReviewers[%{#status.index}]" list="reviewersIdList" 
					 label="Reviewers" key="reviewersIdList" value="it"/></td>
					</tr>
					</s:iterator>
					
				</table>
				
               </s:if>
               <s:set var="total" value="%{reviewersIdList.size()}" />
               
               <s:if test="extraReviewers > 0">
                 <table border="0" cellpadding="5px">
					
					<s:iterator  value="extraReviewers" status="status">
					<tr>
					<td>
					<s:select  name="fileReviewers[%{total}]" list="reviewersIdList" headerKey="" headerValue="Select" label="Assign Reviewers" />
					 <s:set var="total" value="%{1 + #attr.total}" /></td>
					</tr>
					</s:iterator>
					</table>
					
                </s:if>
               <s:submit id="submitButton"  value="Submit" align="center"/>
              </s:form>
</body>
</html>